package com.example.mybatisplusdemo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.mybatisplusdemo.enums.GenderEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`user`")
public class User {
    private Long id;
    private Long addressId;
    private String name;
    private String username;
    private String password;
    private GenderEnum gender;
    private Integer age;
    private String email;
    @TableLogic
    private Integer deleted;
    @TableField(exist = false)
    private Address address;
}